private ["_i","_l","_a"];
_i=0;
_l=list detectlaser;
_a=[];
while {_i<count _l} do {
if ((_l select _i isKindOf "LandVehicle") and ((_l select _i) distance player<=1000) and (count crew (_l select _i)>0))then {
_a=_a+[_l select _i]};_i=_i+1};
_a;
if (true) exitWith {};